#pragma once

#include <QWidget>
class QLabel;
class QLineEdit;
class QPushButton;
class UDispBookWidget;
class UDeleteBookWidget  : public QWidget
{
	Q_OBJECT

public:
	UDeleteBookWidget(QWidget *parent = nullptr);
	~UDeleteBookWidget();
private slots:
	void onClearButtonReleased();
	void onQueryButtonReleased();
	void onDeleteButtonReleased();
private:
	void initButton();
	void initLabel();
	void initLineEdit();

	QLabel* m_pISBN;
	QLabel* m_pTitle;
	QLineEdit* m_pISBNEdit;
	QLineEdit* m_pTitleEdit;
	QPushButton* m_pQueryButton;
	QPushButton* m_pClearButton;
	QPushButton* m_pDeleteButton;
	UDispBookWidget* m_pDispBookWidget;
};
